Skip to content

server: check guest os preference of last host when start a vm#4338

Merged
yadvr merged 1 commit into
apache:4.14from
ustcweizhou:4.14-check-host-guest-os-startvm
Sep 29, 2020
Merged

server: check guest os preference of last host when start a vm#4338
yadvr merged 1 commit into
apache:4.14from
ustcweizhou:4.14-check-host-guest-os-startvm

Conversation

@ustcweizhou
Copy link
Copy Markdown
Contributor

Description

If vm has last host_id specified, cloudstack will try to start vm on it at first.
However, host tag is checked, but guest os preference is not checked.

for new vm, it will be deployed to the preferred host as we expect.

Fixes: #3554 (comment)

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

} else {
s_logger.debug("The last host of this VM does not have enough capacity");
}
} else {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to delete this log? Better to display if either tags or the guest os preference mismatches right?

Copy link
Copy Markdown
Member

@weizhouapache weizhouapache Sep 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2073

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@ravening
Copy link
Copy Markdown
Member

LGTM

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2846)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46460 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4338-t2846-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_supported_versions.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Smoke tests completed. 82 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_02_vpc_privategw_static_routes Failure 257.66 test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanup Failure 341.11 test_privategw_acl.py
test_04_rvpc_privategw_static_routes Failure 482.25 test_privategw_acl.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants